package com.zhixi.common;

/**
 * @ClassName SharedVariablesCurrent
 * @Author zhangzhixi
 * @Description 共享ThreadLocal变量
 * @Date 2022-7-10 11:04
 * @Version 1.0
 */
public class SharedVariablesCurrent {
    private static ThreadLocal<Long> current = new ThreadLocal<>();
    public static void setCurrent(Long id) {
        current.set(id);
    }
    public static Long getCurrent() {
        return current.get();
    }
}
